#include<bits/stdc++.h>
using namespace std;
void solve(){
	cout<<0<<endl;
}
int main(){
	freopen("arena.in","r",stdin);
	freopen("arena.out","w",stdout);
	int T;
	cin>>T;
	while(T--){solve();}
	return 0;
}



































//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk
//bkuhkyuhk




